home *** CD-ROM | disk | FTP | other *** search
/ Popular Request / By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO / amiga3 / ms-qwk43.lha / Install_MS-QWiK < prev    next >
Text File  |  1994-01-25  |  5KB  |  156 lines

  1. ; script to install MS-QWiK
  2. ; Should be run from WorkBench by double-clicking on the icon
  3. ; Requires a stack of 10000 bytes or more
  4.  
  5. (complete 0)
  6.  
  7. (set @default-dest "Work:")
  8.  
  9. (set version (/ (getversion) 65536))
  10. (set version2 36)
  11.  
  12. (set dest2 (askdir  (prompt "Select the location to install the MS-QWiK directory")
  13.                     (default @default-dest)
  14.                     (help "Choose a destination partition or directory " 
  15.                           "to contain the reader.  The install "
  16.                           "program will create a directory called 'MS-QWiK' "
  17.                           "in the location you choose and copy the "
  18.                           "reader files to it."
  19.                     )
  20.            )
  21. )
  22. (set dest1 (tackon dest2 "MS-QWiK"))
  23. (set @default-dest dest1)
  24. (message "MS-QWiK will be installed in " dest1)
  25. (makedir dest2 (safe) (infos))
  26. (makedir dest1 (safe) (infos))
  27.      
  28. (set parts
  29.      (askoptions 
  30.         (prompt "Choose the items you would like installed")
  31.         (choices "Reader" "Support Files")
  32.         (help "You may choose to install only part of the reader.  "
  33.               "If you do not install all parts, you may not be able to use "
  34.               "certain features.  You can choose to install those parts later "
  35.               "by rerunning this install program and selecting the new "
  36.               "parts at this point.  The parts you can choose to install "
  37.               "are:\n\n"
  38.  
  39.               "Reader - \nSelecting this item installs the pieces of the "
  40.               "reader that must be present to allow the reader to operate.\n\n"
  41.  
  42.               "Support Files - \nSelecting this item installs external packers "
  43.               "At least one packer is required and failure to install them "
  44.               "all, may impair the reader's ability to support decompression."
  45.               "of some packets\n\n"
  46.         )
  47.      )
  48. )
  49.                      
  50.    (message "This install program will soon install a new MS-QWiK Configuration File!\n\n Don't forget "
  51.             "to snapshot your old configuration NOW, before installing a new MS-QWiK version, to avoid confusion and help "
  52.             "ease you in the process of configuring your new version of " 
  53.             "MS-QWiK.\n\nYou may also [PROCEED] and choose not to install this "
  54.             "new config file at the CONFIGURATION FILE prompt.  Your old config "
  55.             "file, however, may cause the new version to crash upon booting.  If this "
  56.             "happens, re-run this install utility and you will once "
  57.             "again have the choice to install this new config file.\n\n"
  58.    )
  59.  
  60.  
  61. (if (IN parts 0)
  62.    (copyfiles
  63.       (prompt "Select the Reader files to copy")
  64.       (help @copylib-help)
  65.       (source "")
  66.       (dest dest1)
  67.       (choices "MS-QWiK" "MS-QWiK_DOC.GUIDE")
  68.       (optional "nofail")
  69.       (infos)
  70.       (confirm)
  71.    )
  72. )
  73.  
  74. (if (IN parts 1)
  75.     (set supportfiles
  76.          (askoptions
  77.             (prompt "Which support files do you wish to install?")
  78.             (choices "Zip" "UnZip" "LhA" "AmigaGuide")
  79.             (help "Zip/LhA/UnZip - Installing the compression utilities LhA, "
  80.                   "Zip and UnZip enables MS-QWiK to support packing and "
  81.                   "unpacking of most packets.  If, however, you are certain "
  82.                   "you only need one type then installing all of them would "
  83.                   "be fruitless.  Generally, they should all be installed.\n\n"
  84.                   "AmigaGuide - MS-QWiK's documentations are in AmigaGuide "
  85.                   "format.  The docs can still be viewed using any text reader "
  86.                   "but some of the AmigaGuide symbols may impair viewing.\n\n"
  87.             )
  88.             (default 15)
  89.          )
  90.     )
  91. )
  92.  
  93. ;copy support packer files now - LHA, Zip, etc,...
  94. (if (IN supportfiles 0)
  95.    (copylib
  96.       (prompt "Copying Zip to SYS:C")
  97.       (help @copylib-help)
  98.       (source "c/Zip")
  99.       (dest "SYS:c")
  100.       (optional "nofail")
  101.       (confirm)
  102.    )
  103. )
  104.  
  105. (complete 50)
  106.  
  107. (if (IN supportfiles 1)
  108.    (copylib
  109.       (prompt "Copying UnZip to SYS:C")
  110.       (help @copylib-help)
  111.       (source "c/UnZip")
  112.       (dest "SYS:c")
  113.       (optional "nofail")
  114.       (confirm)
  115.    )
  116. )
  117. (if (IN supportfiles 2)
  118.    (copylib
  119.       (prompt "Copying LhA to SYS:C")
  120.       (help @copylib-help)
  121.       (source "c/LhA")
  122.       (dest "SYS:c")
  123.       (optional "nofail")
  124.       (confirm)
  125.    )
  126. )
  127. (if (IN supportfiles 3)
  128.    (copylib
  129.       (prompt "Copying AmigaGuide to SYS:C")
  130.       (help @copylib-help)
  131.       (source "c/AmigaGuide")
  132.       (dest "SYS:c")
  133.       (optional "nofail")
  134.       (confirm)
  135.    )
  136. )
  137.  
  138. (copylib
  139.    (prompt "Copying ASL.library to SYS:LIBS")
  140.    (help @copylib-help)
  141.    (source "LIBS/asl.library")
  142.    (dest "SYS:LIBS")
  143.    (optional nofail)
  144.    (confirm)
  145. )
  146. (copylib
  147.    (prompt "Copying ASL.library to SYS:LIBS")
  148.    (help @copylib-help)
  149.    (source "LIBS/amigaguide.library")
  150.    (dest "SYS:LIBS")
  151.    (optional nofail)
  152.    (confirm)
  153. )
  154.  
  155. (complete 100)
  156.